export interface PathPoint {
  x: number
  y: number
  type: string
  t: number
}

export interface RouteData {
  position: [number, number]
  route: string[]
}
export type RouteObject = {
  [key: string]: RouteData
}

export type Node = {
  position: [number, number]
  route: string[]
}

export type Graph = {
  [key: string]: Node
}

export type Point = [number, number]

export type TrafficNetMethod =
  | 'initTrafficNet'
  | 'getTrafficNet'
  | 'getAdjacentPoints'
  | 'getPositionById'
  | 'getOptimalPath'
